﻿using ST.Buz.Base.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	public partial class SysOAuthDetail
	{
		/// <summary>
		/// OAuth类型
		/// </summary>
		public SessionType Type { get; set; }

		/// <summary>
		/// OAuth的AppID
		/// </summary>
		public string AppID { get; set; }

		/// <summary>
		/// OAuth的OpenID
		/// </summary>
		public string OpenID { get; set; }

		/// <summary>
		/// OAuth的UnionID
		/// </summary>
		public string UnionID { get; set; }

		/// <summary>
		/// 会话Key
		/// </summary>
		public string SessionKey { get; set; }

		/// <summary>
		/// 昵称
		/// </summary>
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string NickName { get; set; }

		/// <summary>
		/// 性别（0：未知，1：男：2：女）
		/// </summary>
		public int Gender { get; set; }

		/// <summary>
		/// 联系电话
		/// </summary>
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string Phone { get; set; }

		/// <summary>
		/// 手机号
		/// </summary>
		[StringLength(15, ErrorMessage = "{0}长度不能超过{1}")]
		public string Mobile { get; set; }

		/// <summary>
		/// 国家
		/// </summary>
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string Country { get; set; }

		/// <summary>
		/// 省
		/// </summary>
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string Province { get; set; }

		/// <summary>
		/// 市
		/// </summary>
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string City { get; set; }

		/// <summary>
		/// 区、县
		/// </summary>
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string District { get; set; }

		/// <summary>
		/// 乡镇、街道
		/// </summary>
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string Town { get; set; }

		/// <summary>
		/// 详细地址
		/// </summary>
		[StringLength(100, ErrorMessage = "{0}长度不能超过{1}")]
		public string DetailAddress { get; set; }

		/// <summary>
		/// 头像
		/// </summary>
		[StringLength(200, ErrorMessage = "{0}长度不能超过{1}")]
		public string AvatarUrl { get; set; }

		/// <summary>
		/// 公众号是否订阅/关注
		/// </summary>
		public bool Subscribe { get; set; }
	}
}
